require 'View/UIBase/UIBase'
require "Common/define"
require "Logic/Config"
require "Common/functions"
local UIGuildSettingSkin = require "View/UIGuild/Skin/UIGuildSettingSkin"

UIGuildSetting = UIBase.New(PanelNames.UIGuildSetting);

function UIGuildSetting.Init(func)
    UIBase.Init(UIGuildSetting, func);
end

---@param obj GComponent
function UIGuildSetting:OnCreate()
    self.viewSkin = UIGuildSettingSkin.New(self.fguiObj);
    self.viewSkin:setCloseCallback(self.OnBack,self);
end

function UIGuildSetting:OnBack()
    self.backFunc = nil;
    DestoryUI(self._panelName)
end

function UIGuildSetting:OnDestroy()
    self.viewSkin:OnDestroy();
end

return UIGuildSetting;